@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* VARIABLES */
:root {
  --c-dark: #212529;
  --c-brand: #be8314;
  --c-brand-light: #ffffffe5; 
  --c-brand-rgb: rgb(20, 190, 71);
  --c-body: #4b4946;
  --font-base: "generalsans", sans-serif;
  --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
  --transition: alll 0.5s ease;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  color: var(--c-body);
}

h1, h2, h3, h4, h5, h6
.h1, .h2, .h3, .h4, h5, .h6 {
  font-weight: 600;
  color: var(--c-dark);
}

a{
  text-decoration: none;
  color: var(--c-brand);
  transition: var(--transition);
}

a:hover {
  color: var(--c-brand-light);
}

img {
  max-width: 150px;
  height: auto;
}


.section-padding {
  padding-top: 140px;
  padding-bottom: 140px;
}

.bg-cover{
  background-position: center !important;
  background-size: cover !important;
  background-position: center !important;
}


/* navbar */
.navbar {
  box-shadow: var(--box-shadow);
}
.navbar .navbar-nav .nav-link:hover{
  color: #be8314;
  text-decoration: underline;
}
.navbar .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--c-dark);
}

.navbar .navbar-nav .nav-link.active {
  color: var(--c-brand);
}


/* BTN */
.btn {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 0;
  padding: 10px, 24px;
}

.btn-brand {
  background-color: var(--c-brand) !important;
  border-color: var(--c-brand) !important;
  color: white !important;
}

.btn-brand:hover {
  background-color: white !important;
  border-color: white !important;
  color: gray !important;
}

/* Halaman PLTS page */
/* Bagian 1 */
/* Hero Section agar gambar full screen */
.hero-section {
    position: relative;
    width: 100vw; /* Lebar penuh */
    height: 85vh; /* Tinggi penuh sesuai layar */
    background: url('../image/PLTS\ Sistem.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay Gelap Transparan */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Transparan hitam */
}

/* Kotak Tulisan di Tengah */
.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.0); /* Efek transparan */
    border-radius: 10px;
}

/* Styling Teks */
.hero-content h1 {
    font-size: 42px;
    font-family: 'General sans', sans-serif;
    font-weight: bold;
    margin: 0;
}

.hero-content p {
    font-size: 24px;
    font-family: 'General sans', sans-serif;
    margin-top: 10px;
}

/* Bagian 2 */
/* Reset margin dan padding agar lebih rapi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styling untuk Bagian 2 */
.section-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 100%;
    height: 100%; /* Menyesuaikan tinggi agar full screen */
    padding: 50px;
}

/* Layout untuk gambar dan teks */
.content {
    display: flex;
    max-width: 1200px;
    width: 90%;
    align-items: center;
    justify-content: center;
}

/* Gaya untuk gambar */
.content img {
    width: 45%; /* Ukuran gambar lebih besar agar proporsional */
    max-width: 500px; /* Maksimum ukuran agar tidak terlalu besar */
    height: auto;
    border-radius: 10px;
    margin-right: 65px; /* Memberikan jarak antara gambar dan teks */
}

/* Gaya untuk teks */
.text-content {
    width: 50%;
}

.text-content h2 {
    font-size: 28px;
    font-family: 'General sans', sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 18px;
    font-family: 'General sans', sans-serif;
    text-align: justify;
    line-height: 1.8;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    .content img {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .text-content {
        width: 100%;
    }
}

/* Bagian 3 */
/* Reset margin dan padding agar lebih rapi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.section-3 {
  background: url('../image/Sampul\ gambar\ PLTS.jpg') no-repeat center center/cover;
  width: 100%;
  height: 250px; /* Sesuai permintaan */
  display: flex;
  align-items: flex-end; /* Menurunkan teks */
  justify-content: center;
  position: relative;
  padding-bottom: 30px; /* Menurunkan teks sedikit */
  padding-top: 50px;
}

/* Overlay transparan untuk teks */
.overlay {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
}

/* Judul utama */
.overlay h2 {
  font-size: 32px;
  font-weight: bold;
  font-family: 'General sans', sans-serif;
}

/* Subheading */
.overlay .subheading {
  font-size: 18px;
  font-weight: 400;
  font-family: 'General sans', sans-serif;
  margin-top: 10px;
  margin-bottom: 2px;
}

/* Teks kecil untuk aturan */
.overlay .small-text {
  font-size: 18px;
  font-weight: 400; 
  font-family: 'General sans', sans-serif;
  margin-top: 0;
}

/* Bagian 4 */
.section-4 {
    position: relative;
    z-index: 100;
    margin-top: -100px;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.flow-card {
    box-shadow: 0px 15px 35px rgba(0,0,0,0.15);
    border-radius: 35px;
    padding: 40px;
    width: 100%;
    max-width: 1390px;
    border: none;
    overflow: hidden; /* Mencegah scroll horizontal di mobile */
}

.main-icon {
    width: 75px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.flow-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.path-style {
    fill: none;
    stroke: #d89045;
    stroke-width: 2.5;
    stroke-dasharray: 10, 6;
    stroke-linejoin: round;
}

.flow-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 2px 5px;
    z-index: 2;
}

.approval-diamond {
    border: 2px solid #212529;
    padding: 10px 30px;
    font-weight: bold;
    background: white;
    z-index: 2;
    clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
}

.timer-float-icon {
    width: 60px;
    z-index: 3; 
}

/* ======================================================
   PENGATURAN DESKTOP (Kunci Posisi Sesuai Keinginan Anda)
   ====================================================== */
@media (min-width: 1200px) {
    .desktop-pos-1 { position: relative; top: 26px; left: 65px; }
    .desktop-pos-2 { position: relative; top: 28px; left: -90px; }
    .desktop-pos-3 { position: relative; top: 0px; left: -210px; }
    .desktop-pos-4 { position: relative; top: 24px; left: -310px; }
    .desktop-pos-persetujuan { position: relative; top: 100px; left: -270px; }
    .desktop-pos-timer { position: relative; top: -70px; left: 517px; }
    .desktop-pos-meteran { position: relative; top: 0px; left: 400px; }
    .desktop-pos-selesai { position: relative; top: 0px; left: 237px; }
    
    .flow-lines-svg { left: -97px; display: block; }
}

/* ======================================================
   PENGATURAN TABLET & MOBILE (Otomatis Rapi)
   ====================================================== */
@media (max-width: 1199px) {
    .flow-lines-svg { display: none; } /* Sembunyikan garis karena koordinat pasti meleset */
    .section-4 { margin-top: -50px; }
    .flow-card { padding: 30px 15px; overflow: visible; }
    
    /* Reset semua posisi geser manual agar kembali ke grid standar Bootstrap */
    .desktop-pos-1, .desktop-pos-2, .desktop-pos-3, .desktop-pos-4,
    .desktop-pos-persetujuan, .desktop-pos-timer, .desktop-pos-meteran, 
    .desktop-pos-selesai {
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 30px;
    }
    
    .main-icon { width: 100px; }
    .approval-diamond { margin: 20px 0; }
}

/* Bagian 5 */
.section-5 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto; /* Tidak full screen */
}

.left-content {
  width: 50%;
}

.left-content h3 {
  font-size: 28px;
  font-family: 'General sans', sans-serif;
  color: #000000;
  text-align: center;
}

.left-content h2 {
  font-size: 30px;
  font-family: 'General sans', sans-serif;
  font-weight: bold;
  text-align: center;
}

/* Mengubah dropdown agar menyatu tanpa background */
.dropdown-container {
  margin-top: 20px;
}

details {
  border-bottom: 2px solid #ccc;
  padding: 10px;
  cursor: pointer;
}

details:last-child {
  border-bottom: none;
}

summary {
  font-size: 16px;
  font-family: 'General sans', sans-serif;
  font-weight: bold;
  cursor: pointer;
  padding: 8px;
  background: none; /* Hapus background */
}

details p {
  margin-top: 10px;
  padding: 10px;
  background: none; /* Hapus background */
  border-left: 3px solid orange;
}

/* Card Kanan */
.right-card {
  width: 50%;
  background: rgba(0, 0, 0, 0.132);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  min-height: 500px; /* Sesuaikan secara manual */
}

.right-card h3 {
  font-size: 28px;
  font-family: 'General sans', sans-serif;
  color: #000000;
}

.right-card h2 {
  font-size: 32px;
  font-family: 'General sans', sans-serif;
  font-weight: bold;
}

.right-card p {
  font-size: 16px;
  font-family: 'General sans', sans-serif;
  color: #000000;
}

hr {
  border: none;
  height: 1px;
  background: #ccc;
  margin: 15px 0;
}

/* Grid untuk bagian bawah */
.impact-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.impact-box p {
  font-size: 16px;
  color: #000000;
  margin: 5px 0; /* Mengurangi margin agar lebih rapat */
  line-height: 1.2; /* Mengatur spasi antar baris lebih kecil */
}

@media (max-width: 768px) {
  .section-5 {
    flex-direction: column-reverse;
    padding: 30px 20px; /* Optional: biar lebih rapi di HP */
  }

  .left-content,
  .right-card {
    width: 100%; /* Biar card-nya full di mobile */
  }

  .impact-grid {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}

/* Footer */
footer {
  background-color: #20262E;
  color: #ffffff;
  padding: 40px 20px;
}
footer a {
  color: #ffffff;
  text-decoration: none;
}
footer a:hover {
  color: orange;
}
.social-icons a {
  margin-right: 15px;
  color: #ffffff;
  font-size: 20px;
}
.social-icons a:hover {
  color: orange;
}
.menu-list a {
  display: block;
  margin-bottom: 10px;
}
.subscribe input {
  margin-bottom: 10px;
}